package com.ruoyi.supply.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 快讯对象 t_news
 * 
 * @author Ryan
 * @date 2025-06-05
 */
@Data
@ApiModel("快讯")
@EqualsAndHashCode(callSuper = true)
@TableName("t_news")
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty("id")
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    @ApiModelProperty("标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    @ApiModelProperty("内容")
    private String content;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("发布时间")
    private Date pushTime;

    /** 状态;0正常1停用 */
    @Excel(name = "状态;0正常1停用")
    @ApiModelProperty("状态;0正常1停用")
    private String status;

    /** del falg;0存在，2删除 */
    @JsonIgnore
    @TableLogic(value = "0",delval = "2")
    private String delFlag;


}
